import Vue from 'vue'
import VueRouter from 'vue-router'
import nav from "../views/nav.vue"
Vue.use(VueRouter)

const routes = [
    {
        path:"/",
        redirect:"/nav",
    },
    {
        path:"/nav",
        name:"Nav",
        component:nav
    },
    {
        path:"/about",
        name:"About",
        component: ()=>import("../views/about.vue")
    }
]

const router = new VueRouter({
    routes
  })
  
  export default router